import request from "@/utils/request"

// 分页查询学生信息
export const getStuList = (params) => request.get('/students', { params })

// 根据ID查询学生信息
export const getStuById = (id) => request.get(`/students/${id}`)

// 添加学生信息
export const addStu = (data) => request.post('/students', data)

// 编辑学生信息
export const updateStu = (data) => request.put('/students', data)

// 违纪处理
export const violationStu = (id, score) => request.put(`/students/violation/${id}/${score}`)